package com.slz3.business.module.memberManagement.memThirdLoginInfo.steward;

import com.slz3.business.module.memberManagement.memThirdLoginInfo.domain.MemThirdLoginInfo;
import com.slz3.business.module.memberManagement.memThirdLoginInfo.domain.MemThirdLoginInfoCondition;
import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono;

public class MemThirdLoginInfoResponse {

    public static Mono<ServerResponse> add(ServerRequest req) {
        return req.bodyToMono(MemThirdLoginInfo.class).flatMap(memThirdLoginInfo ->
                MemThirdLoginInfoResController.add(req, memThirdLoginInfo)
        );
    }

    public static Mono<ServerResponse> delete(ServerRequest req) {
        return req.bodyToMono(MemThirdLoginInfoCondition.class).flatMap(memThirdLoginInfoCondition ->
                MemThirdLoginInfoResController.delete(req, memThirdLoginInfoCondition)
        );
    }

    public static Mono<ServerResponse> modify(ServerRequest req) {
        return req.bodyToMono(MemThirdLoginInfo.class).flatMap(memThirdLoginInfo ->
                MemThirdLoginInfoResController.modify(req, memThirdLoginInfo)
        );
    }


    public static Mono<ServerResponse> list(ServerRequest req) {
        return MemThirdLoginInfoResController.list(req);
    }

    public static Mono<ServerResponse> info(ServerRequest req) {
        return MemThirdLoginInfoResController.info(req);
    }

    public static Mono<ServerResponse> choice(ServerRequest req) {
        return MemThirdLoginInfoResController.choice(req);
    }

    public static Mono<ServerResponse> auditSubmit(ServerRequest req) {
        return req.bodyToMono(MemThirdLoginInfoCondition.class).flatMap(memThirdLoginInfoCondition ->
                MemThirdLoginInfoResController.auditSubmit(req, memThirdLoginInfoCondition)
        );
    }

    public static Mono<ServerResponse> audit(ServerRequest req) {
        return req.bodyToMono(MemThirdLoginInfoCondition.class).flatMap(memThirdLoginInfoCondition ->
                MemThirdLoginInfoResController.audit(req, memThirdLoginInfoCondition)
        );
    }

    public static Mono<ServerResponse> auditReject(ServerRequest req) {
        return req.bodyToMono(MemThirdLoginInfoCondition.class).flatMap(memThirdLoginInfoCondition ->
                MemThirdLoginInfoResController.auditReject(req, memThirdLoginInfoCondition)
        );
    }

    public static Mono<ServerResponse> usingEnable(ServerRequest req) {
        return req.bodyToMono(MemThirdLoginInfoCondition.class).flatMap(memThirdLoginInfoCondition ->
                MemThirdLoginInfoResController.usingEnable(req, memThirdLoginInfoCondition)
        );
    }

    public static Mono<ServerResponse> usingDisable(ServerRequest req) {
        return req.bodyToMono(MemThirdLoginInfoCondition.class).flatMap(memThirdLoginInfoCondition ->
                MemThirdLoginInfoResController.usingDisable(req, memThirdLoginInfoCondition)
        );
    }   

}
